lib/core: Add ostree_validate_remote_name() for remote names
authorPhilip Withnall <withnall@endlessm.com>
Wed, 14 Jun 2017 11:28:52 +0000 (12:28 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 20 Jun 2017 21:52:22 +0000 (21:52 +0000)
commit20dc9454b3ba257778a74b42699c8506996372db
tree7a690cc64f04c41239f0c11b3d0cb110ae0dbacd
parentfd50c9732231895b18cd8158726e7f77bc8dcae6
lib/core: Add ostree_validate_remote_name() for remote names

There are a few places in the code where ad-hoc validation was being
performed. Might as well formalise it a bit more.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #948
Approved by: cgwalters
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-core.c
src/libostree/ostree-core.h
src/libostree/ostree-repo.c
tests/test-basic-c.c